<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="include :: header('编辑')"/>
    <th:block th:include="include :: select2-css"/>
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body>
<div class="main-content">
    <form id="form-user-add" class="form-horizontal">
        <div class="row">
            <div class="form-group">
                <label class="col-sm-4 control-label is-required">用户名称：</label>
                <div class="col-sm-8" th:text="111">
                </div>
                <label class="col-sm-4 control-label is-required">用户名称：</label>
                <div class="col-sm-8" th:text="222">
                </div>
                <label class="col-sm-4 control-label is-required">用户名称：</label>
                <div class="col-sm-8" th:text="333">
                </div>
                <div>
                    <a onclick="addConsolidate()">添加巩固项目</a>
                </div>
            </div>
        </div>

        <div class="row">
            <div class="col-sm-8">
                <li th:each="entity : ${studentTrainingItems}">
                    <a onclick='editSchedule(entity.id)'><i class="fa fa-edit"></i></a>
                    <div class="col-sm-8" th:text="entity.reachTheStandard"></div>
                </li>
            </div>
        </div>

        <h3>巩固项目</h3>
        <div class="row">
            <div class="col-sm-8">
                <li th:each="entity : ${studentTrainingItems}">
                    <a onclick='editSchedule(entity.id)'><i class="fa fa-edit"></i></a>
                    <div class="col-sm-8" th:text="entity.reachTheStandard"></div>
                </li>
            </div>
        </div>

    </form>
</div>

<div class="row">
    <div class="col-sm-offset-5 col-sm-10">
        <button type="button" class="btn btn-sm btn-primary" onclick="submitHandler()"><i class="fa fa-check"></i>保 存
        </button>
    </div>
</div>
<th:block th:include="include :: footer"/>
<th:block th:include="include :: select2-js"/>
<th:block th:include="include :: datetimepicker-js" />
<script>

    /* 老师修改标准 */
    function editSchedule(studentTrainingItemsId) {
        var url = prefix + '/editSchedule/' + studentTrainingItemsId;
        $.modal.open("编辑", url, '800', '300');
    }

</script>
</body>
</html>